package config

type Queue struct {
	QueueType string `json:"queue_type" mapstructure:"queue_type" yaml:"queue_type"`
	Amqp      *Amqp  `json:"amqp" mapstructure:"amqp" yaml:"amqp"`
}

type Amqp struct {
	// host:port address.
	Addr      string `mapstructure:"addr" json:"addr" yaml:"addr"`
	Username  string `json:"username" mapstructure:"username" yaml:"username"`
	Password  string `json:"password" mapstructure:"password" yaml:"password"`
	Vhost     string `json:"vhost" mapstructure:"vhost" yaml:"vhost"`
	Heartbeat int    `json:"heartbeat" mapstructure:"heartbeat" yaml:"heartbeat"`

	Locale string `json:"locale" mapstructure:"locale" yaml:"locale"`
}
